home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / What's New? / Development Kits / ColorSync™ 2.0.1 GM / Interfaces / AIncludes / CMPRComponent.a < prev   
Encoding:
Text File  |  1995-12-12  |  3.5 KB  |  161 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CMPRComponent.a
  3. ;
  4. ;    Contains:    ColorSync ProfileResponder Components Interface 
  5. ;
  6. ;    Version:    Technology:    ColorSync 2.0
  7. ;                Release:    2.0f3
  8. ;
  9. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, send the file and version
  13. ;                information (from above) and the problem description to:
  14. ;
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__CMPRCOMPONENT__') = 'UNDEFINED' THEN
  21. __CMPRCOMPONENT__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  30.     include 'Quickdraw.a'
  31.     ENDIF
  32. ;        include 'MixedMode.a'                                        ;
  33. ;        include 'QuickdrawText.a'                                    ;
  34. ;            include 'ScriptLayout.a'                                ;
  35.  
  36.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  37.     include 'Components.a'
  38.     ENDIF
  39.  
  40.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  41.     include 'CMApplication.a'
  42.     ENDIF
  43. ;        include 'Files.a'                                            ;
  44. ;            include 'OSUtils.a'                                    ;
  45. ;                include 'Memory.a'                                    ;
  46. ;            include 'Finder.a'                                        ;
  47. ;        include 'Printing.a'                                        ;
  48. ;            include 'Errors.a'                                        ;
  49. ;            include 'Dialogs.a'                                    ;
  50. ;                include 'Windows.a'                                ;
  51. ;                    include 'Events.a'                                ;
  52. ;                    include 'Controls.a'                            ;
  53. ;                        include 'Collections.a'                    ;
  54. ;                        include 'Appearance.a'                        ;
  55. ;                        include 'TextObjects.a'                    ;
  56. ;                            include 'Unicode.a'                    ;
  57. ;                        include 'Menus.a'                            ;
  58. ;                    include 'AppleEvents.a'                        ;
  59. ;                        include 'EPPC.a'                            ;
  60. ;                            include 'AppleTalk.a'                    ;
  61. ;                            include 'PPCToolbox.a'                    ;
  62. ;                            include 'Processes.a'                    ;
  63. ;                        include 'Notification.a'                    ;
  64. ;                            include 'Kernel.a'                        ;
  65. ;                                include 'MachineExceptions.a'        ;
  66. ;                                include 'Timing.a'                    ;
  67. ;                    include 'Drag.a'                                ;
  68. ;                        include 'TextEdit.a'                        ;
  69. ;        include 'CMICCProfile.a'                                    ;
  70.  
  71. CMPRInterfaceVersion            EQU        0
  72.  
  73. ; Component function selectors 
  74. kCMPRGetProfile                    EQU        0
  75. kCMPRSetProfile                    EQU        1
  76. kCMPRSetProfileDescription        EQU        2
  77. kCMPRGetIndexedProfile            EQU        3
  78. kCMPRDeleteDeviceProfile        EQU        4
  79.  
  80. ;
  81. ; pascal CMError CMGetProfile(ComponentInstance pr, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
  82. ;
  83.     IF ¬ GENERATINGCFM THEN
  84.         Macro
  85.         _CMGetProfile
  86.             dc.w     $2F3C
  87.             dc.w     $0000
  88.             dc.w     $0000
  89.             moveq    #0,d0
  90.             dc.w     $A82A
  91.         EndM
  92.     ELSE
  93.         IMPORT    CMGetProfile
  94.     ENDIF
  95.  
  96. ;
  97. ; pascal CMError CMSetProfile(ComponentInstance pr, CMProfileHandle newProfile)
  98. ;
  99.     IF ¬ GENERATINGCFM THEN
  100.         Macro
  101.         _CMSetProfile
  102.             dc.w     $2F3C
  103.             dc.w     $0000
  104.             dc.w     $0000
  105.             moveq    #0,d0
  106.             dc.w     $A82A
  107.         EndM
  108.     ELSE
  109.         IMPORT    CMSetProfile
  110.     ENDIF
  111.  
  112. ;
  113. ; pascal CMError CMSetProfileDescription(ComponentInstance pr, long DeviceData, CMProfileHandle hProfile)
  114. ;
  115.     IF ¬ GENERATINGCFM THEN
  116.         Macro
  117.         _CMSetProfileDescription
  118.             dc.w     $2F3C
  119.             dc.w     $0000
  120.             dc.w     $0000
  121.             moveq    #0,d0
  122.             dc.w     $A82A
  123.         EndM
  124.     ELSE
  125.         IMPORT    CMSetProfileDescription
  126.     ENDIF
  127.  
  128. ;
  129. ; pascal CMError CMGetIndexedProfile(ComponentInstance pr, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
  130. ;
  131.     IF ¬ GENERATINGCFM THEN
  132.         Macro
  133.         _CMGetIndexedProfile
  134.             dc.w     $2F3C
  135.             dc.w     $0002
  136.             dc.w     $0000
  137.             moveq    #0,d0
  138.             dc.w     $A82A
  139.         EndM
  140.     ELSE
  141.         IMPORT    CMGetIndexedProfile
  142.     ENDIF
  143.  
  144. ;
  145. ; pascal CMError CMDeleteDeviceProfile(ComponentInstance pr, CMProfileHandle deleteMe)
  146. ;
  147.     IF ¬ GENERATINGCFM THEN
  148.         Macro
  149.         _CMDeleteDeviceProfile
  150.             dc.w     $2F3C
  151.             dc.w     $0000
  152.             dc.w     $0000
  153.             moveq    #0,d0
  154.             dc.w     $A82A
  155.         EndM
  156.     ELSE
  157.         IMPORT    CMDeleteDeviceProfile
  158.     ENDIF
  159.  
  160.     ENDIF ; __CMPRCOMPONENT__
  161.